home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / misc / math / MathFX_src.lha / fxerx1.c < prev    next >
C/C++ Source or Header  |  1995-12-20  |  432b  |  22 lines

  1. /* Plots single horizontal error bar */
  2.  
  3. #include "mathfx.h"
  4. #include <math.h>
  5.  
  6.  
  7.  
  8. void fxerx1(xmin,xmax,y)
  9. float xmin, xmax, y;
  10. {
  11.       float mindef, minht, xpmm, ypmm;
  12.       int yminor;
  13.       
  14.       gmin(&mindef,&minht);
  15.       gpixmm(&xpmm,&ypmm);
  16.       yminor = max(1.0,minht*ypmm);
  17.       movwor(xmin,y);
  18.       fxxtik(wcpcx(xmin),wcpcy(y),yminor,yminor);
  19.       drawor(xmax,y);
  20.       fxxtik(wcpcx(xmax),wcpcy(y),yminor,yminor);
  21. }
  22.